<?php

$fields = array(

	'title' => array(
		'validation' => array('trim', 'required', 'min_length'=>2),
		'type' => 'text',
		'element_class' => 'longtext',
		'caption' => __('Title'),
	),

	'tag' => array(
		'validation' => array('trim', 'required', 'min_length'=>2),
		'type' => 'text',
		'element_class' => 'longtext',
		'caption' => __('Tag'),
	),

	'keywords' => array(
		'validation' => array('trim', 'min_length'=>2, 'max_length'=>150),
		'type' => 'text',
		'element_class' => 'longtext',
		'caption' => __('Keywords'),
	),

	'description' => array(
		'validation' => array('trim', 'min_length'=>2, 'max_length'=>100),
		'type' => 'text',
		'element_class' => 'longtext',
		'caption' => __('Description'),
	),

	'state' => array(
		'validation' => array('required'),
		'type' => 'radio',
		'caption' => __('State'),
		'class' => 'float',
		'list' => ':states',
		'value' => 'raw',
	),

	'group_id' => array(
		'validation' => array('required'),
		'type' => 'select',
		'caption' => __('Group'),
		'class' => 'column',
		'list' => ':groups',
	),

	'author_id' => array(
		'validation' => array('required'),
		'type' => 'select',
		'caption' => __('Author'),
		'class' => 'column column-last',
		'list' => ':authors',
		'extra' => ':clear',
	),

	'type' => array(
		'validation' => array('required'),
		'type' => 'radio',
		'caption' => __('Type'),
		'class' => 'float',
		'list' => ':types',
	),

	'notice' => array(
		'validation' => array('trim', 'required', 'max_length' => 150),
		'type' => 'textarea',
		'element_class' => 'shorttext longtext',
		'caption' => __('Notice'),
	),

	'content' => array(
		'validation' => array('trim', 'required', 'min_length' => 200),
		'type' => 'textarea',
		'element_class' => 'longtext',
		'caption' => __('Content'),
	),
);
